//
//  MtTextField.m
//  UI练习
//
//  Created by dllo on 16/3/19.
//  Copyright © 2016年 Apon. All rights reserved.
//

#import "MtTextField.h"

@implementation MtTextField
- (instancetype)initWithFrame:(CGRect)frame placeHolder:(NSString *)placeHolder{
    self = [super initWithFrame:frame];
    if (self) {
        self.placeholder = placeHolder;
        [self config];
    }
    return self;
    
}
- (void)config{
    
    self.borderStyle = UITextBorderStyleBezel;
    self.clearButtonMode = UITextFieldViewModeAlways;
    
}















/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
